//链表
public class Main {
    //1.测试
    public static void main(String[] args) {
       MyLinkedList myLinkedList = new MyLinkedList();
       myLinkedList.addFirst(1);
       myLinkedList.addLast(2);
       myLinkedList.addIndex(2,3);
       myLinkedList.display();
       myLinkedList.remove(3);
       myLinkedList.removeAllKey(2);
        System.out.println(myLinkedList.contains(1));
        System.out.println(myLinkedList.size());
        myLinkedList.clear();
        System.out.println(myLinkedList.head);
        System.out.println(myLinkedList.last);
    }
}